6.9
MEDIUM CVSS 2.0
CVE-2013-2171
FreeBSD MemMap Write Privilege Escalation Vulnerability
Description

The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEASE-p4 does not properly determine whether a task should have write access to a memory location, which allows local users to bypass filesystem write permissions and consequently gain privileges via a crafted application that leverages read permissions, and makes mmap and ptrace system calls.

INFO

Published Date :

July 2, 2013, 3:43 a.m.

Last Modified :

April 11, 2025, 12:51 a.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2013-2171 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Freebsd freebsd
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
Solution
The FreeBSD system is affected by a vulnerability that could allow local users to bypass file system write permissions and gain privileges.
  • Update the affected FreeBSD packages.
  • Upgrade the kfreebsd packages.
Public PoC/Exploit Available at Github

CVE-2013-2171 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2013-2171 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2013-2171 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

C Shell Python Ruby Makefile HTML Linker Script Batchfile Perl

Updated: 1 month, 2 weeks ago
5 stars 0 fork 0 watcher
Born at : Aug. 19, 2025, 3:53 a.m. This repo has been linked 93 different CVEs too.

CVE-2013-2171

C

Updated: 6 months ago
1 stars 0 fork 0 watcher
Born at : Nov. 18, 2021, 12:25 p.m. This repo has been linked 1 different CVEs too.

Localroot-ALL-CVE~

localroot cheatsheet security kernel linux exploits cve linux-privilege-escalation cybersecurity infosec pentesting

C Shell Python Ruby Makefile HTML Perl Batchfile

Updated: 2 months, 2 weeks ago
146 stars 46 fork 46 watcher
Born at : Feb. 2, 2020, 6:25 a.m. This repo has been linked 93 different CVEs too.

Localroot Compile

C Shell Python

Updated: 1 year, 1 month ago
24 stars 23 fork 23 watcher
Born at : Aug. 1, 2019, 11:25 a.m. This repo has been linked 31 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2013-2171 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2013-2171 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://svnweb.freebsd.org/base?view=revision&revision=251901
    Added Reference http://www.debian.org/security/2013/dsa-2714
    Added Reference http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CPE Deprecation Remap by [email protected]

    Mar. 18, 2019

    Action Type Old Value New Value
    Changed CPE Configuration OR *cpe:2.3:o:freebsd:freebsd:9.1:release-p4:*:*:*:*:*:* OR *cpe:2.3:o:freebsd:freebsd:9.1:p4:*:*:*:*:*:*
  • Initial Analysis by [email protected]

    Jul. 02, 2013

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.9
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

21.29 }} -1.29%

score

0.95521

percentile